package com.framework.utils.constant;

/**
 * 
 * <p>Description: 系统常量</p>
 * @since 2016年11月3日
 * @author 张飞
 * <p>Copyright:Copyright(c)2016</p>
 */
public class Constants {
	
	/**
	 * 主数据源名称
	 */
	public static final String DATASOURCE_MASTER_NAME = "master";

	// ============================配置文件注册名称=============================
	/**
	 * 日志message配置项 
	 */
	public static final String MESSAGE_PROPERTY = "message.property";

	/**
	 * sysconfig系统配置项 
	 */
	public static final String SYSCONFIG_PROPERTY = "sysconfig.property";

	/**
	 * log4j配置项
	 */
	public static final String LOG4J_PROPERTY = "log4j.property";

	/**
	 * reply message配置文件
	 */
	public static final String EXCEPTION_MESSAGE_PROPERTY = "exception.message.property";

	/**
	 * 主数据源配置项
	 */
	public static final String DATASOURCE_MASTER_PROPERTY = "datasource.master.property";

	/**
	 * 从数据源配置项
	 */
	public static final String DATASOURCE_SLAVE_PROPERTY = "datasource.slave.property";
	
	/**
	 * 数据源名称配置
	 */
	public static final String DATASOURCE_MAPPING_PROPERTY = "datasource.mapping.xml";

	/**
	 * 自定义配置文件注册
	 */
	public static final String CUSTOM_REGISTER_CONFIG = "config-file-register.property";

	/**
	 * memcached配置项
	 */
	public static final String CACHE_MEMCACHED_PROPERTY = "cache.memcached.property";

	/**
	 * redis配置项
	 */
	public static final String CACHE_REDIS_PROPERTY = "cache.redis.property";

	/**
	 * 定时任务在“自定义配置文件”注册的节点
	 */
	public static final String SCHEDULE_JOB_NODE = "schedule.job.xml";

	// ==========================================================================================

	/**memcached服务地址*/
	public static final String MEMCACHED_SERVER_ADDRESS = "memcached.server.address";

	/**memcached客户端的连接池大小*/
	public static final String MEMCACHED_CLIENT_CONNECTION_SIZE = "memcached.client.connection.size";

	/**redis服务地址*/
	public static final String CACHE_REDIS_IP = "cache.redis.ip";

	/**redis服务地址*/
	public static final String CACHE_REDIS_PASSWORD = "cache.redis.password";

	/**redis端口*/
	public static final String CACHE_REDIS_PORT = "cache.redis.port";

	/**redis客户端的最大空闲连接数*/
	public static final String CACHE_REDIS_MAXIDLE = "cache.redis.maxidle";

	/**redis客户端的最大连接数*/
	public static final String CACHE_REDIS_MAXACTIVE = "cache.redis.maxactive";
}
